<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/


//Route::post('/user',);

Route::get('send','UserController@send');
Route::post('sendMessage','SendMessageController@send');
Route::post('saveMessage','SendMessageController@save');
Route::post('baidu','UserController@baiduForm')->name('baidu');
Route::post('toutiao','UserController@toutiaoForm')->name('toutiao');
Route::post('kuaishou','UserController@kuaishou')->name('kuaishou');
Route::get('changfangdi','UserController@changfangdi');
Route::post('tengxun','UserController@tengxunForm')->name('tengxun');
Route::post('huawei/{project_id}/{create_user_id}','UserController@huaweiForm')->name('huawei');
Route::post('createCustomer','UserController@createCustomer');
Route::any('wechat','WechatController@serve');

Route::any('addressBook','WechatController@addressBook');
Route::any('agent','AgentController@index');
